<%@page import="Model.User.UserList"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    CookieHelper cookie = new CookieHelper(request, response);
    if (cookie.Get("account") == null || cookie.Get("account") == "") {
        response.sendRedirect("/login/login");
    }
    UserList user = new UserList(pageContext);
    user.select("corpname").where("myid=?", cookie.Get("myid")).get_first_rows();
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA -Compatible" content="IE=edge">
        <title>企企通-个人中心</title>
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="../css/reset.css" rel="stylesheet" type="text/css"/>
        <link href="css/index.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div id="menu">
            <div>
                <img src="img/avatar.gif" />
                <span><%=cookie.Get("account")%></span>
            </div>
            <ul>
                <% if (cookie.Get("level").equals("0")) {%>
                <li id="account" class="sl" src="account.jsp">账号设置</li>
                <li id="sonAccount" src="sonaccount.jsp">子账号管理</li>
                <li id="vcard" src="vcard.jsp">企业名片</li>
                    <%}%>
                <li id="enquiry" src="enquiry.jsp">询比价管理</li>
                <li id="source" src="source.jsp">寻源管理</li>
                <% if (cookie.Get("level").equals("0")) {%>
                <li id="administer"><a href="/my/space">空间管理</a></li>
                    <%}%>
            </ul>
        </div>
                    <h1><%=user.get("corpname")%><a href="/">返回首页</a></h1>
        <!--内容区域-->
        <%  if (cookie.Get("level").equals("0")) {%>
        <iframe id="content" frameborder="0"  src="account.jsp"></iframe>
            <% } else { %>
        <iframe id="content" frameborder="0"  src="enquiry.jsp"></iframe>
            <% }%>
        <!--图片预览-->
        <div id="preview">
            <img src=""  title="点击关闭"/>
        </div>
        <!--模糊图层-->
        <div id="vague">
            <div id="hint">
            </div>
        </div>
        <div id="sele" str="">
            <div id="sele_pop">
                确定要删除吗？
                <div>
                    <span id="confirm" val="">确认</span>
                    <span>取消</span>
                </div>
            </div>
        </div>
        <%@include file="/inc/js_all.html" %>
        <script src="js/index.js" type="text/javascript"></script>
    </body>
</html>
